package com.qf;

import com.qf.dao.PassengerDao;
import com.qf.pojo.Passenger;
import com.qf.utils.MyBatisUtils;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;


public class test {

    @Test
    public void testDelete(){
        List<Integer> list = new ArrayList<>();
        list.add(4);
        list.add(5);
        list.add(6);
        PassengerDao mapper = MyBatisUtils.getMapper(PassengerDao.class);
        mapper.delete(list);
        MyBatisUtils.commit();
    }
}
